""" 
@file: serializer.py.py
@Time: 2018/08/13
@Author:heningqiu
"""
from rest_framework import serializers
from UShop.models import TbNews2

# class SnippetSerializer(serializers.ModelSerializer):
class NewsSerializer(serializers.ModelSerializer):
    class Meta:
         model = TbNews2

         fields = "__all__"

# class CategorySerializer(serializers.ModelSerializer):
#     class Meta:
         # fields = ('news_id', 'news_time', 'news_status',
         #           'news_title', 'hot_img', 'news_content',
         #          'news_img' ,'news_classify','key_word'
         #           )










